/*! @file providerdlg.h
  * @brief Definition of ProviderDlg Class
  * A Dialog to select providers in /data/data of external Device
  * @author AK
  * @date 10.09.2012
  */

#ifndef PROVIDERDLG_H
#define PROVIDERDLG_H

#include "ui_providerdlg.h"

#include <QDialog>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QStringListModel>

/**
 * @brief The ProviderDlg class
 */
class ProviderDlg : public QDialog,
        public Ui::ProviderDlg
{
    Q_OBJECT

public:
    ProviderDlg(QList<QString> provider, QWidget *parent = 0);

Q_SIGNALS:
    void providersReady(QList<QString>);

private:
    //QModelIndex *index;
    QStandardItemModel *model;
    QStringListModel *stringlistmodel;
    QSortFilterProxyModel *proxy;

private Q_SLOTS:
    void on_FilterProviderList(QString filter);
    void on_okButtonClicked();
    void rightBtnWhatsThatAct();
    void showContextMenu(const QPoint &pos);
};

#endif // PROVIDERDLG_H
